import request from "@/utils/requestMd5";

// 获取在线图库分类
export function get_categoryList(params) {
  return request({
    url: "/img/categoryList",
    method: "get",
    params
  });
}
// 添加二级分类
export function add_category(data) {
  return request({
    url: "/img/addCategory",
    method: "post",
    data
  });
}
// 修改二级分类
export function edit_category(data) {
  return request({
    url: "/img/editCategory",
    method: "post",
    data
  });
}

// 删除二级分类
export function delet_category(params) {
  return request({
    url: "/img/deleteCategory",
    method: "get",
    params
  });
}

// 在线图库列表
export function get_imgList(params) {
  return request({
    url: "/img/imgList",
    method: "get",
    params
  });
}
// 添加图片
export function add_img(data) {
  return request({
    url: "/img/addImg",
    method: "post",
    data
  });
}

// 删除图片
export function delete_img(params) {
  return request({
    url: "/img/deleteImg",
    method: "get",
    params
  });
}
